﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using Finance.UI.Web;


namespace Finance.UI.Controllers
{
    [Authorize]
    public class AreaBaseController : Controller
    {

        protected internal new JsonResult Json(object data)
        {
            return new JsonNetResult(data, null /* contentType */, null /* contentEncoding */, JsonRequestBehavior.DenyGet);
        }

        protected internal new JsonResult Json(object data, string contentType)
        {
            return new JsonNetResult(data, contentType, null /* contentEncoding */, JsonRequestBehavior.DenyGet);
        }

        protected internal virtual new JsonResult Json(object data, string contentType, Encoding contentEncoding)
        {
            return new JsonNetResult(data, contentType, contentEncoding, JsonRequestBehavior.DenyGet);
        }

        protected internal new JsonResult Json(object data, JsonRequestBehavior behavior)
        {
            return new JsonNetResult(data, null /* contentType */, null /* contentEncoding */, behavior);
        }

        protected internal new JsonResult Json(object data, string contentType, JsonRequestBehavior behavior)
        {
            return new JsonNetResult(data, contentType, null /* contentEncoding */, behavior);
        }

        protected internal new virtual JsonResult Json(object data, string contentType, Encoding contentEncoding,
                                                       JsonRequestBehavior behavior)
        {
            return new JsonNetResult(data, contentType, contentEncoding, behavior);
        }
        protected override void OnException(ExceptionContext filterContext)
        {
           
            base.OnException(filterContext);
        }
    }
}